﻿<%@ Control Language="C#" ClassName="PatVehiculoFields" %>

<asp:FormView ID="FormView1" runat="server">
	<ItemTemplate>
		<table border="0" cellpadding="3" cellspacing="1">
			<tr>
        <td class="literal"><asp:Label ID="lbldataVin" runat="server" Text="Vin:" AssociatedControlID="dataVin" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataVin" Text='<%# Bind("Vin") %>' MaxLength="20"></asp:TextBox><asp:RequiredFieldValidator ID="ReqVal_dataVin" runat="server" Display="Dynamic" ControlToValidate="dataVin" ErrorMessage="Required"></asp:RequiredFieldValidator>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataPlaca" runat="server" Text="Placa:" AssociatedControlID="dataPlaca" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataPlaca" Text='<%# Bind("Placa") %>' MaxLength="10"></asp:TextBox><asp:RequiredFieldValidator ID="ReqVal_dataPlaca" runat="server" Display="Dynamic" ControlToValidate="dataPlaca" ErrorMessage="Required"></asp:RequiredFieldValidator>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataMotor" runat="server" Text="Motor:" AssociatedControlID="dataMotor" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataMotor" Text='<%# Bind("Motor") %>' MaxLength="20"></asp:TextBox><asp:RequiredFieldValidator ID="ReqVal_dataMotor" runat="server" Display="Dynamic" ControlToValidate="dataMotor" ErrorMessage="Required"></asp:RequiredFieldValidator>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataIdCliente" runat="server" Text="Id Cliente:" AssociatedControlID="dataIdCliente" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataIdCliente" Text='<%# Bind("IdCliente") %>'></asp:TextBox><asp:RequiredFieldValidator ID="ReqVal_dataIdCliente" runat="server" Display="Dynamic" ControlToValidate="dataIdCliente" ErrorMessage="Required"></asp:RequiredFieldValidator><asp:RangeValidator ID="RangeVal_dataIdCliente" runat="server" Display="Dynamic" ControlToValidate="dataIdCliente" ErrorMessage="Invalid value" MaximumValue="2147483647" MinimumValue="-2147483648" Type="Integer"></asp:RangeValidator>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataSerie" runat="server" Text="Serie:" AssociatedControlID="dataSerie" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataSerie" Text='<%# Bind("Serie") %>' MaxLength="20"></asp:TextBox>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataChasis" runat="server" Text="Chasis:" AssociatedControlID="dataChasis" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataChasis" Text='<%# Bind("Chasis") %>' MaxLength="20"></asp:TextBox>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataIdColor" runat="server" Text="Id Color:" AssociatedControlID="dataIdColor" /></td>
        <td>
					<data:EntityDropDownList runat="server" ID="dataIdColor" DataSourceID="IdColorPatColorDataSource" DataTextField="DescripcionColor" DataValueField="IdColor" SelectedValue='<%# Bind("IdColor") %>' AppendNullItem="true" Required="true" NullItemText="< Seleccione ...>" ErrorText="Required" />
					<data:PatColorDataSource ID="IdColorPatColorDataSource" runat="server" SelectMethod="GetAll"  />
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataAnioModelo" runat="server" Text="Anio Modelo:" AssociatedControlID="dataAnioModelo" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataAnioModelo" Text='<%# Bind("AnioModelo") %>'></asp:TextBox><asp:RequiredFieldValidator ID="ReqVal_dataAnioModelo" runat="server" Display="Dynamic" ControlToValidate="dataAnioModelo" ErrorMessage="Required"></asp:RequiredFieldValidator><asp:RangeValidator ID="RangeVal_dataAnioModelo" runat="server" Display="Dynamic" ControlToValidate="dataAnioModelo" ErrorMessage="Invalid value" MaximumValue="32767" MinimumValue="-32768" Type="Integer"></asp:RangeValidator>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataIdTipoServicio" runat="server" Text="Id Tipo Servicio:" AssociatedControlID="dataIdTipoServicio" /></td>
        <td>
					<data:EntityDropDownList runat="server" ID="dataIdTipoServicio" DataSourceID="IdTipoServicioPatTipoServicioDataSource" DataTextField="DescripcionTipoServicio" DataValueField="IdTipoServicio" SelectedValue='<%# Bind("IdTipoServicio") %>' AppendNullItem="true" Required="true" NullItemText="< Seleccione ...>" ErrorText="Required" />
					<data:PatTipoServicioDataSource ID="IdTipoServicioPatTipoServicioDataSource" runat="server" SelectMethod="GetAll"  />
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataFechaVencimientoSeguroObligatorio" runat="server" Text="Fecha Vencimiento Seguro Obligatorio:" AssociatedControlID="dataFechaVencimientoSeguroObligatorio" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataFechaVencimientoSeguroObligatorio" Text='<%# Bind("FechaVencimientoSeguroObligatorio", "{0:d}") %>' MaxLength="10"></asp:TextBox><asp:ImageButton ID="cal_dataFechaVencimientoSeguroObligatorio" runat="server" SkinID="CalendarImageButton" OnClientClick="javascript:showCalendarControl(this.previousSibling);return false;" />
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataNombreConcesionarioVendedor" runat="server" Text="Nombre Concesionario Vendedor:" AssociatedControlID="dataNombreConcesionarioVendedor" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataNombreConcesionarioVendedor" Text='<%# Bind("NombreConcesionarioVendedor") %>' MaxLength="100"></asp:TextBox>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataFechaVenta" runat="server" Text="Fecha Venta:" AssociatedControlID="dataFechaVenta" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataFechaVenta" Text='<%# Bind("FechaVenta", "{0:d}") %>' MaxLength="10"></asp:TextBox><asp:ImageButton ID="cal_dataFechaVenta" runat="server" SkinID="CalendarImageButton" OnClientClick="javascript:showCalendarControl(this.previousSibling);return false;" /><asp:RequiredFieldValidator ID="ReqVal_dataFechaVenta" runat="server" Display="Dynamic" ControlToValidate="dataFechaVenta" ErrorMessage="Required"></asp:RequiredFieldValidator>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataKilometrajeVenta" runat="server" Text="Kilometraje Venta:" AssociatedControlID="dataKilometrajeVenta" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataKilometrajeVenta" Text='<%# Bind("KilometrajeVenta") %>'></asp:TextBox><asp:RequiredFieldValidator ID="ReqVal_dataKilometrajeVenta" runat="server" Display="Dynamic" ControlToValidate="dataKilometrajeVenta" ErrorMessage="Required"></asp:RequiredFieldValidator><asp:RangeValidator ID="RangeVal_dataKilometrajeVenta" runat="server" Display="Dynamic" ControlToValidate="dataKilometrajeVenta" ErrorMessage="Invalid value" MaximumValue="2147483647" MinimumValue="-2147483648" Type="Integer"></asp:RangeValidator>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataNumeroRadio" runat="server" Text="Numero Radio:" AssociatedControlID="dataNumeroRadio" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataNumeroRadio" Text='<%# Bind("NumeroRadio") %>'></asp:TextBox><asp:RangeValidator ID="RangeVal_dataNumeroRadio" runat="server" Display="Dynamic" ControlToValidate="dataNumeroRadio" ErrorMessage="Invalid value" MaximumValue="2147483647" MinimumValue="-2147483648" Type="Integer"></asp:RangeValidator>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataUltimoKilometraje" runat="server" Text="Ultimo Kilometraje:" AssociatedControlID="dataUltimoKilometraje" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataUltimoKilometraje" Text='<%# Bind("UltimoKilometraje") %>'></asp:TextBox><asp:RequiredFieldValidator ID="ReqVal_dataUltimoKilometraje" runat="server" Display="Dynamic" ControlToValidate="dataUltimoKilometraje" ErrorMessage="Required"></asp:RequiredFieldValidator><asp:RangeValidator ID="RangeVal_dataUltimoKilometraje" runat="server" Display="Dynamic" ControlToValidate="dataUltimoKilometraje" ErrorMessage="Invalid value" MaximumValue="2147483647" MinimumValue="-2147483648" Type="Integer"></asp:RangeValidator>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataKilometrajePromedio" runat="server" Text="Kilometraje Promedio:" AssociatedControlID="dataKilometrajePromedio" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataKilometrajePromedio" Text='<%# Bind("KilometrajePromedio") %>'></asp:TextBox><asp:RequiredFieldValidator ID="ReqVal_dataKilometrajePromedio" runat="server" Display="Dynamic" ControlToValidate="dataKilometrajePromedio" ErrorMessage="Required"></asp:RequiredFieldValidator><asp:RangeValidator ID="RangeVal_dataKilometrajePromedio" runat="server" Display="Dynamic" ControlToValidate="dataKilometrajePromedio" ErrorMessage="Invalid value" MaximumValue="2147483647" MinimumValue="-2147483648" Type="Integer"></asp:RangeValidator>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataActivo" runat="server" Text="Activo:" AssociatedControlID="dataActivo" /></td>
        <td>
					<asp:RadioButtonList runat="server" ID="dataActivo" SelectedValue='<%# Bind("Activo") %>' RepeatDirection="Horizontal"><asp:ListItem Value="True" Text="Si" Selected="True"></asp:ListItem><asp:ListItem Value="False" Text="No"></asp:ListItem></asp:RadioButtonList>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataIdCatalogo" runat="server" Text="Id Catalogo:" AssociatedControlID="dataIdCatalogo" /></td>
        <td>
					<data:EntityDropDownList runat="server" ID="dataIdCatalogo" DataSourceID="IdCatalogoPatCatalogoVehiculoDataSource" DataTextField="CodigoInternoCatalogo" DataValueField="IdCatalogo" SelectedValue='<%# Bind("IdCatalogo") %>' AppendNullItem="true" Required="true" NullItemText="< Seleccione ...>" ErrorText="Required" />
					<data:PatCatalogoVehiculoDataSource ID="IdCatalogoPatCatalogoVehiculoDataSource" runat="server" SelectMethod="GetAll"  />
				</td>
			</tr>
			
		</table>

	</ItemTemplate>
</asp:FormView>


